﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="HelpDetail.ascx.cs" Inherits="controls_admin_ViewCategory" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<div class="box">
    <!-- box / title -->
    <div class="title">
        <h5>
            Chi tiết trợ giúp
        </h5>
        <div class="search">
            <div class="input">
            </div>
            <div class="button">
            </div>
        </div>
    </div>
    <!-- end box / title -->
    <div id="divMessage" runat="server" />
    <div class="form" style="padding-bottom: 40px;">
        <div style="position: absolute; left: 80px; width: 250px; height: auto;">
            <asp:ListBox ID="lbCategory" runat="server" Height="520px" Width="100%" AutoPostBack="True"
                OnSelectedIndexChanged="lbCategory_SelectedIndexChanged" CssClass="listbox" BackColor="Transparent">
            </asp:ListBox>
        </div>
        <div style="left: 280px; margin: 0; padding: 0 0 8px 0; width: auto; position: relative;">
            <div class="field">
                <div class="label" style="left: 20px;">
                    <label for="input-small">
                        Nội dung:</label>
                </div>
            </div>
            <div>
                <div style="left: 20px; margin-top: 10px; margin-bottom: 10px">
                    <FCKeditorV2:FCKeditor ID="fkcContent" runat="server" BasePath="~/fckeditor/" Width="70%"
                        Height="500">
                    </FCKeditorV2:FCKeditor>
                </div>
            </div>
            <div class="buttons">
                <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" Width="100px" OnClick="btnUpdate_Click" />
            </div>
        </div>
    </div>
    <div style="text-align: center; margin: 10px">
        <%if (Session["url"] != null)
          {
              if (Request.UrlReferrer != null)
              {
                  if (!Request.UrlReferrer.ToString().Equals(Request.Url.ToString()))
                  {
                      Session["url"] = Request.UrlReferrer.ToString();                      
                  
        %>
        <a onclick="history.go(-1);" title="Trang trước">
            <%
}
                      else
                      {
            %>
            <a href='<%=Session["url"].ToString() %>' title="Trang trước">
                <%   
}
                  }
                  else
                  {                      
                %>
                <a onclick="history.go(-1);" title="Trang trước">
                    <%}
              }
          else
          {
              if (Request.UrlReferrer != null)
                  Session.Add("url", Request.UrlReferrer.ToString());
              else
                  Session.Add("url", Request.Url.ToString());
                    %>
                    <a href="default.aspx" title="Trang trước">
                        <%} %>
                        <img src="../resources/images/icons/16x16/arrow-return.png" alt="Trang trước" /></a>
                    &nbsp;&nbsp; <a href="default.aspx" title="Trang chủ">
                        <img src="../resources/images/icons/16x16/home.png" alt="Trang chủ" /></a>
    </div>
</div>
